package org.platform.executor.knowledge;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd10012.TestGroupModifyRequestParam;
import org.platform.mo.csmo.cmd10012.TestGroupModifyResponseParam;
import org.platform.service.knowledge.TestServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * @author FengJie
 * @date 2018/4/16
 */
@Service
public class ModifyTestGroupExecutor implements IMicProviderServiceExecutor<TestGroupModifyRequestParam, TestGroupModifyResponseParam> {
    @Autowired
    private TestServiceImpl service;

    @Override
    public TestGroupModifyResponseParam doExecute(TestGroupModifyRequestParam requestParam) {
        try {
            return service.modifyTestGroup(requestParam);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}
